package com.asa.voice.mp3.asa.instream;

import java.io.IOException;
import java.io.RandomAccessFile;

public final class BuffRandReadFile extends RandomRead {
	  private RandomAccessFile rafIn;
	  
	  public boolean open(String paramString1, String paramString2) throws IOException {
	    this.rafIn = new RandomAccessFile(paramString1, "r");
	    this.length = this.rafIn.length();
	    return true;
	  }
	  
	  public int read(byte[] paramArrayOfbyte, int paramInt1, int paramInt2) throws IOException {
	    return this.rafIn.read(paramArrayOfbyte, paramInt1, paramInt2);
	  }
	  
	  public boolean seek(long paramLong) throws IOException {
	    this.rafIn.seek(paramLong);
	    return true;
	  }
	  
	  public void close() {
	    try {
	      this.rafIn.close();
	    } catch (IOException iOException) {}
	  }
	}
